<template>
    <div class="commodity">
        <div class="data_list">
            <div class="item">
                <div class="img">
                    <img src="//img10.360buyimg.com/mobilecms/s360x360_jfs/t1/139547/39/23601/320230/6194b214E17ece90e/722f197b25285330.jpg!q70.dpg.webp" alt="">
                </div>
                <p>鲁花花生油 5S 压榨一级  花生油</p>
                <p class="price">$165.90</p>
                <div class="look"> <span>看相似</span> </div>
            </div>
        </div>
        <div class="data_list">
            <div class="item">
                <div class="img">
                    <img src="//img10.360buyimg.com/mobilecms/s360x360_jfs/t1/139547/39/23601/320230/6194b214E17ece90e/722f197b25285330.jpg!q70.dpg.webp" alt="">
                </div>
                <p>鲁花花生油 5S 压榨一级  花生油</p>
                <p class="price">$165.90</p>
                <div class="look"> <span>看相似</span> </div>
            </div>
        </div>
        <div class="data_list">
            <div class="item">
                <div class="img">
                    <img src="//img10.360buyimg.com/mobilecms/s360x360_jfs/t1/139547/39/23601/320230/6194b214E17ece90e/722f197b25285330.jpg!q70.dpg.webp" alt="">
                </div>
                <p>鲁花花生油 5S 压榨一级  花生油</p>
                <p class="price">$165.90</p>
                <div class="look"> <span>看相似</span> </div>
            </div>
        </div>
    </div>
</template>

<script>
export default{
    name:'Commodity',
    data(){
        return{
            msg:'这是中间！',
        };
    },
};
</script>

<style lang="scss" scoped>
    .commodity{
        width: 680px;
        // height: 300px;
        // background-color: rgb(197, 94, 10);
        margin: 20px auto;
        display: flex;
        // 允许换行
        flex-wrap: wrap;
        // justify-content: space-around;
        .data_list{
            // 开启弹性盒
            display: flex;
            // 允许换行
            flex-wrap: wrap;
            width: 50%;
            .item{
                width: 50vw;// 宽度的50%; 
                // 箱内压缩盒模型的空间
                box-sizing: border-box;
                // padding: 20px;
                p{
                    font-size: 30px;
                }
                .look{
                    display: flex;
                    justify-content: flex-end;
                    font-size: 30px;
                    span{
                        background-color: #eee;
                        padding: 5px 15px;
                        border-radius: 5px;
                    }
                }
                .price{
                    color: #f00;
                }
                .img{
                    text-align: center;
                    img{
                        width: 300px;
                    }
                }
            }
        }
    }
</style> 